home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1998 June / SGI Freeware 1998 June.iso / dist / fw_ATxgopher.idb / usr / freeware / src / xgopher.1.3 / itemList.h.z / itemList.h
C/C++ Source or Header  |  1998-01-21  |  2KB  |  119 lines

  1. /* itemList.h
  2.    header file for itemList.c */
  3.  
  4.      /*---------------------------------------------------------------*/
  5.      /* Xgopher        version 1.3     08 April 1993                  */
  6.      /*                version 1.2     20 November 1992               */
  7.      /*                version 1.1     20 April 1992                  */
  8.      /*                version 1.0     04 March 1992                  */
  9.      /* X window system client for the University of Minnesota        */
  10.      /*                                Internet Gopher System.        */
  11.      /* Allan Tuchman, University of Illinois at Urbana-Champaign     */
  12.      /*                Computing and Communications Services Office   */
  13.      /* Copyright 1992, 1993 by                                       */
  14.      /*           the Board of Trustees of the University of Illinois */
  15.      /* Permission is granted to freely copy and redistribute this    */
  16.      /* software with the copyright notice intact.                    */
  17.      /*---------------------------------------------------------------*/
  18.  
  19.  
  20. #ifndef ITEMLIST_H
  21. #define ITEMLIST_H
  22.  
  23. #include "gopher.h"
  24.  
  25.  
  26. gopherItemP    acquireItem(
  27.         );
  28.  
  29. void        releaseItem(
  30. #ifdef PROTO
  31.             gopherItemP    /* gi */
  32. #endif
  33.         );
  34.  
  35. void        initItemList(
  36. #ifdef PROTO
  37.             gopherItemListP    /* list */
  38. #endif
  39.         );
  40.  
  41. void        freeItemList(
  42. #ifdef PROTO
  43.             gopherItemListP    /* list */
  44. #endif
  45.         );
  46.  
  47. void        appendItem(
  48. #ifdef PROTO
  49.             gopherItemListP,/* list */
  50.             gopherItemP    /* gi */
  51. #endif
  52.         );
  53.  
  54. gopherItemP    getItemN(
  55. #ifdef PROTO
  56.             gopherItemListP,/* list */
  57.             int        /* n */
  58. #endif
  59.         );
  60.  
  61. gopherItemP    nextItem(
  62. #ifdef PROTO
  63.             gopherItemP    /* gi */
  64. #endif
  65.         );
  66.  
  67. void        removeItemN(
  68. #ifdef PROTO
  69.             gopherItemListP,/* list */
  70.             int        /* n */
  71. #endif
  72.         );
  73.  
  74. void        removeItem(
  75. #ifdef PROTO
  76.             gopherItemListP,/* list */
  77.             gopherItemP    /* gi */
  78. #endif
  79.         );
  80.  
  81. int        itemListLength(
  82. #ifdef PROTO
  83.             gopherItemListP /* list */
  84. #endif
  85.         );
  86.  
  87.  
  88.  
  89. static void    allocGopherItem(
  90. #ifdef PROTO
  91.             int        /* n */
  92. #endif
  93. );
  94.  
  95. static void    releaseItems(
  96. #ifdef PROTO
  97.             gopherItemP    /* gi */
  98. #endif
  99. );
  100.  
  101. static void    pushItem(
  102. #ifdef PROTO
  103.             gopherItemListP,/* list, gi */
  104.             gopherItemP    /* list, gi */
  105. #endif
  106. );
  107.  
  108.  
  109. #ifdef DEBUG_LIST
  110. void        printItemList(
  111. #ifdef PROTO
  112.             gopherItemListP,/* list */
  113.             char *        /* label */
  114. #endif
  115. );
  116. #endif /* DEBUG_LIST */
  117.  
  118. #endif /* ITEMLIST_H */
  119.